.class public Lorg/springframework/util/AntPathMatcher;
.super Ljava/lang/Object;
.source "AntPathMatcher.java"

# interfaces
.implements Lorg/springframework/util/PathMatcher;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/springframework/util/AntPathMatcher$AntPatternComparator;
    }
.end annotation


# static fields
.field public static final DEFAULT_PATH_SEPARATOR:Ljava/lang/String; = "/"

.field private static final VARIABLE_PATTERN:Ljava/util/regex/Pattern;


# instance fields
.field private pathSeparator:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 49
    const-string v0, "\\{[^/]+?\\}"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lorg/springframework/util/AntPathMatcher;->VARIABLE_PATTERN:Ljava/util/regex/Pattern;

    .line 47
    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 47
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 54
    const-string v0, "/"

    iput-object v0, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    .line 47
    return-void
.end method

.method static synthetic access$0()Ljava/util/regex/Pattern;
    .locals 1

    .prologue
    .line 49
    sget-object v0, Lorg/springframework/util/AntPathMatcher;->VARIABLE_PATTERN:Ljava/util/regex/Pattern;

    return-object v0
.end method

.method private matchStrings(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Z
    .locals 2
    .parameter "pattern"
    .parameter "str"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)Z"
        }
    .end annotation

    .prologue
    .line 219
    .local p3, uriTemplateVariables:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    new-instance v0, Lorg/springframework/util/AntPathStringMatcher;

    invoke-direct {v0, p1, p2, p3}, Lorg/springframework/util/AntPathStringMatcher;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V

    .line 220
    .local v0, matcher:Lorg/springframework/util/AntPathStringMatcher;
    invoke-virtual {v0}, Lorg/springframework/util/AntPathStringMatcher;->matchStrings()Z

    move-result v1

    return v1
.end method


# virtual methods
.method public combine(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 12
    .parameter "pattern1"
    .parameter "pattern2"

    .prologue
    const/16 v11, 0x2e

    const/4 v9, -0x1

    const/4 v10, 0x0

    .line 293
    invoke-static {p1}, Lorg/springframework/util/StringUtils;->hasText(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_1

    invoke-static {p2}, Lorg/springframework/util/StringUtils;->hasText(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_1

    .line 294
    const-string p2, ""

    .line 352
    .end local p2
    :cond_0
    :goto_0
    return-object p2

    .line 296
    .restart local p2
    :cond_1
    invoke-static {p1}, Lorg/springframework/util/StringUtils;->hasText(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_0

    .line 299
    invoke-static {p2}, Lorg/springframework/util/StringUtils;->hasText(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_2

    move-object p2, p1

    .line 300
    goto :goto_0

    .line 302
    :cond_2
    invoke-virtual {p0, p1, p2}, Lorg/springframework/util/AntPathMatcher;->match(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_0

    .line 305
    const-string v8, "/*"

    invoke-virtual {p1, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_4

    .line 306
    const-string v8, "/"

    invoke-virtual {p2, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_3

    .line 308
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    add-int/lit8 v9, v9, -0x1

    invoke-virtual {p1, v10, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const/4 v9, 0x1

    invoke-virtual {p2, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    .line 312
    :cond_3
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    add-int/lit8 v9, v9, -0x1

    invoke-virtual {p1, v10, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto :goto_0

    .line 315
    :cond_4
    const-string v8, "/**"

    invoke-virtual {p1, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_6

    .line 316
    const-string v8, "/"

    invoke-virtual {p2, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_5

    .line 318
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto/16 :goto_0

    .line 322
    :cond_5
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "/"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto/16 :goto_0

    .line 326
    :cond_6
    invoke-virtual {p1, v11}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    .line 327
    .local v0, dotPos1:I
    if-ne v0, v9, :cond_9

    .line 329
    const-string v8, "/"

    invoke-virtual {p1, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_7

    const-string v8, "/"

    invoke-virtual {p2, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_8

    .line 330
    :cond_7
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto/16 :goto_0

    .line 333
    :cond_8
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "/"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto/16 :goto_0

    .line 336
    :cond_9
    invoke-virtual {p1, v10, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    .line 337
    .local v6, fileName1:Ljava/lang/String;
    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    .line 340
    .local v3, extension1:Ljava/lang/String;
    invoke-virtual {p2, v11}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    .line 341
    .local v1, dotPos2:I
    if-eq v1, v9, :cond_a

    .line 342
    invoke-virtual {p2, v10, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v7

    .line 343
    .local v7, fileName2:Ljava/lang/String;
    invoke-virtual {p2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    .line 349
    .local v4, extension2:Ljava/lang/String;
    :goto_1
    const-string v8, "*"

    invoke-virtual {v6, v8}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_b

    move-object v5, v7

    .line 350
    .local v5, fileName:Ljava/lang/String;
    :goto_2
    const-string v8, "*"

    invoke-virtual {v3, v8}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_c

    move-object v2, v4

    .line 352
    .local v2, extension:Ljava/lang/String;
    :goto_3
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto/16 :goto_0

    .line 346
    .end local v2           #extension:Ljava/lang/String;
    .end local v4           #extension2:Ljava/lang/String;
    .end local v5           #fileName:Ljava/lang/String;
    .end local v7           #fileName2:Ljava/lang/String;
    :cond_a
    move-object v7, p2

    .line 347
    .restart local v7       #fileName2:Ljava/lang/String;
    const-string v4, ""

    .restart local v4       #extension2:Ljava/lang/String;
    goto :goto_1

    :cond_b
    move-object v5, v6

    .line 349
    goto :goto_2

    .restart local v5       #fileName:Ljava/lang/String;
    :cond_c
    move-object v2, v3

    .line 350
    goto :goto_3
.end method

.method protected doMatch(Ljava/lang/String;Ljava/lang/String;ZLjava/util/Map;)Z
    .locals 21
    .parameter "pattern"
    .parameter "path"
    .parameter "fullMatch"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Z",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)Z"
        }
    .end annotation

    .prologue
    .line 87
    .local p4, uriTemplateVariables:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p2

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v19

    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v20, v0

    move-object/from16 v0, p1

    move-object/from16 v1, v20

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v20

    move/from16 v0, v19

    move/from16 v1, v20

    if-eq v0, v1, :cond_0

    .line 88
    const/16 v19, 0x0

    .line 208
    :goto_0
    return v19

    .line 91
    :cond_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p1

    move-object/from16 v1, v19

    invoke-static {v0, v1}, Lorg/springframework/util/StringUtils;->tokenizeToStringArray(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v13

    .line 92
    .local v13, pattDirs:[Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p2

    move-object/from16 v1, v19

    invoke-static {v0, v1}, Lorg/springframework/util/StringUtils;->tokenizeToStringArray(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v10

    .line 94
    .local v10, pathDirs:[Ljava/lang/String;
    const/4 v15, 0x0

    .line 95
    .local v15, pattIdxStart:I
    array-length v0, v13

    move/from16 v19, v0

    add-int/lit8 v14, v19, -0x1

    .line 96
    .local v14, pattIdxEnd:I
    const/4 v12, 0x0

    .line 97
    .local v12, pathIdxStart:I
    array-length v0, v10

    move/from16 v19, v0

    add-int/lit8 v11, v19, -0x1

    .line 100
    .local v11, pathIdxEnd:I
    :goto_1
    if-gt v15, v14, :cond_1

    if-le v12, v11, :cond_2

    .line 112
    :cond_1
    if-le v12, v11, :cond_b

    .line 114
    if-le v15, v14, :cond_6

    .line 115
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p1

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v19

    if-eqz v19, :cond_4

    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p2

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v19

    goto :goto_0

    .line 101
    :cond_2
    aget-object v7, v13, v15

    .line 102
    .local v7, patDir:Ljava/lang/String;
    const-string v19, "**"

    move-object/from16 v0, v19

    invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-nez v19, :cond_1

    .line 105
    aget-object v19, v10, v12

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    move-object/from16 v2, p4

    invoke-direct {v0, v7, v1, v2}, Lorg/springframework/util/AntPathMatcher;->matchStrings(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Z

    move-result v19

    if-nez v19, :cond_3

    .line 106
    const/16 v19, 0x0

    goto :goto_0

    .line 108
    :cond_3
    add-int/lit8 v15, v15, 0x1

    .line 109
    add-int/lit8 v12, v12, 0x1

    goto :goto_1

    .line 116
    .end local v7           #patDir:Ljava/lang/String;
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p2

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v19

    if-eqz v19, :cond_5

    const/16 v19, 0x0

    goto/16 :goto_0

    :cond_5
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 118
    :cond_6
    if-nez p3, :cond_7

    .line 119
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 121
    :cond_7
    if-ne v15, v14, :cond_8

    aget-object v19, v13, v15

    const-string v20, "*"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_8

    move-object/from16 v0, p0

    iget-object v0, v0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    move-object/from16 v19, v0

    move-object/from16 v0, p2

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v19

    if-eqz v19, :cond_8

    .line 122
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 124
    :cond_8
    move v5, v15

    .local v5, i:I
    :goto_2
    if-le v5, v14, :cond_9

    .line 129
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 125
    :cond_9
    aget-object v19, v13, v5

    const-string v20, "**"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-nez v19, :cond_a

    .line 126
    const/16 v19, 0x0

    goto/16 :goto_0

    .line 124
    :cond_a
    add-int/lit8 v5, v5, 0x1

    goto :goto_2

    .line 131
    .end local v5           #i:I
    :cond_b
    if-le v15, v14, :cond_c

    .line 133
    const/16 v19, 0x0

    goto/16 :goto_0

    .line 135
    :cond_c
    if-nez p3, :cond_11

    const-string v19, "**"

    aget-object v20, v13, v15

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_11

    .line 137
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 142
    :cond_d
    aget-object v7, v13, v14

    .line 143
    .restart local v7       #patDir:Ljava/lang/String;
    const-string v19, "**"

    move-object/from16 v0, v19

    invoke-virtual {v7, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_f

    .line 152
    .end local v7           #patDir:Ljava/lang/String;
    :cond_e
    :goto_3
    if-le v12, v11, :cond_15

    .line 154
    move v5, v15

    .restart local v5       #i:I
    :goto_4
    if-le v5, v14, :cond_12

    .line 159
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 146
    .end local v5           #i:I
    .restart local v7       #patDir:Ljava/lang/String;
    :cond_f
    aget-object v19, v10, v11

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    move-object/from16 v2, p4

    invoke-direct {v0, v7, v1, v2}, Lorg/springframework/util/AntPathMatcher;->matchStrings(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Z

    move-result v19

    if-nez v19, :cond_10

    .line 147
    const/16 v19, 0x0

    goto/16 :goto_0

    .line 149
    :cond_10
    add-int/lit8 v14, v14, -0x1

    .line 150
    add-int/lit8 v11, v11, -0x1

    .line 141
    .end local v7           #patDir:Ljava/lang/String;
    :cond_11
    if-gt v15, v14, :cond_e

    if-le v12, v11, :cond_d

    goto :goto_3

    .line 155
    .restart local v5       #i:I
    :cond_12
    aget-object v19, v13, v5

    const-string v20, "**"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-nez v19, :cond_13

    .line 156
    const/16 v19, 0x0

    goto/16 :goto_0

    .line 154
    :cond_13
    add-int/lit8 v5, v5, 0x1

    goto :goto_4

    .line 163
    .end local v5           #i:I
    :cond_14
    const/4 v8, -0x1

    .line 164
    .local v8, patIdxTmp:I
    add-int/lit8 v5, v15, 0x1

    .restart local v5       #i:I
    :goto_5
    if-le v5, v14, :cond_17

    .line 170
    :goto_6
    add-int/lit8 v19, v15, 0x1

    move/from16 v0, v19

    if-ne v8, v0, :cond_19

    .line 172
    add-int/lit8 v15, v15, 0x1

    .line 162
    .end local v5           #i:I
    .end local v8           #patIdxTmp:I
    :cond_15
    :goto_7
    if-eq v15, v14, :cond_16

    if-le v12, v11, :cond_14

    .line 202
    :cond_16
    move v5, v15

    .restart local v5       #i:I
    :goto_8
    if-le v5, v14, :cond_1e

    .line 208
    const/16 v19, 0x1

    goto/16 :goto_0

    .line 165
    .restart local v8       #patIdxTmp:I
    :cond_17
    aget-object v19, v13, v5

    const-string v20, "**"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-eqz v19, :cond_18

    .line 166
    move v8, v5

    .line 167
    goto :goto_6

    .line 164
    :cond_18
    add-int/lit8 v5, v5, 0x1

    goto :goto_5

    .line 177
    :cond_19
    sub-int v19, v8, v15

    add-int/lit8 v9, v19, -0x1

    .line 178
    .local v9, patLength:I
    sub-int v19, v11, v12

    add-int/lit8 v16, v19, 0x1

    .line 179
    .local v16, strLength:I
    const/4 v4, -0x1

    .line 182
    .local v4, foundIdx:I
    const/4 v5, 0x0

    :goto_9
    sub-int v19, v16, v9

    move/from16 v0, v19

    if-le v5, v0, :cond_1a

    .line 194
    :goto_a
    const/16 v19, -0x1

    move/from16 v0, v19

    if-ne v4, v0, :cond_1d

    .line 195
    const/16 v19, 0x0

    goto/16 :goto_0

    .line 183
    :cond_1a
    const/4 v6, 0x0

    .local v6, j:I
    :goto_b
    if-lt v6, v9, :cond_1b

    .line 190
    add-int v4, v12, v5

    .line 191
    goto :goto_a

    .line 184
    :cond_1b
    add-int v19, v15, v6

    add-int/lit8 v19, v19, 0x1

    aget-object v17, v13, v19

    .line 185
    .local v17, subPat:Ljava/lang/String;
    add-int v19, v12, v5

    add-int v19, v19, v6

    aget-object v18, v10, v19

    .line 186
    .local v18, subStr:Ljava/lang/String;
    move-object/from16 v0, p0

    move-object/from16 v1, v17

    move-object/from16 v2, v18

    move-object/from16 v3, p4

    invoke-direct {v0, v1, v2, v3}, Lorg/springframework/util/AntPathMatcher;->matchStrings(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Z

    move-result v19

    if-nez v19, :cond_1c

    .line 182
    add-int/lit8 v5, v5, 0x1

    goto :goto_9

    .line 183
    :cond_1c
    add-int/lit8 v6, v6, 0x1

    goto :goto_b

    .line 198
    .end local v6           #j:I
    .end local v17           #subPat:Ljava/lang/String;
    .end local v18           #subStr:Ljava/lang/String;
    :cond_1d
    move v15, v8

    .line 199
    add-int v12, v4, v9

    goto :goto_7

    .line 203
    .end local v4           #foundIdx:I
    .end local v8           #patIdxTmp:I
    .end local v9           #patLength:I
    .end local v16           #strLength:I
    :cond_1e
    aget-object v19, v13, v5

    const-string v20, "**"

    invoke-virtual/range {v19 .. v20}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    if-nez v19, :cond_1f

    .line 204
    const/16 v19, 0x0

    goto/16 :goto_0

    .line 202
    :cond_1f
    add-int/lit8 v5, v5, 0x1

    goto :goto_8
.end method

.method public extractPathWithinPattern(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 9
    .parameter "pattern"
    .parameter "path"

    .prologue
    const/4 v8, -0x1

    .line 237
    iget-object v6, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    invoke-static {p1, v6}, Lorg/springframework/util/StringUtils;->tokenizeToStringArray(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    .line 238
    .local v4, patternParts:[Ljava/lang/String;
    iget-object v6, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    invoke-static {p2, v6}, Lorg/springframework/util/StringUtils;->tokenizeToStringArray(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 240
    .local v2, pathParts:[Ljava/lang/String;
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 243
    .local v0, builder:Ljava/lang/StringBuilder;
    const/4 v5, 0x0

    .line 244
    .local v5, puts:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    array-length v6, v4

    if-lt v1, v6, :cond_0

    .line 256
    array-length v1, v4

    :goto_1
    array-length v6, v2

    if-lt v1, v6, :cond_5

    .line 263
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    return-object v6

    .line 245
    :cond_0
    aget-object v3, v4, v1

    .line 246
    .local v3, patternPart:Ljava/lang/String;
    const/16 v6, 0x2a

    invoke-virtual {v3, v6}, Ljava/lang/String;->indexOf(I)I

    move-result v6

    if-gt v6, v8, :cond_1

    const/16 v6, 0x3f

    invoke-virtual {v3, v6}, Ljava/lang/String;->indexOf(I)I

    move-result v6

    if-le v6, v8, :cond_4

    :cond_1
    array-length v6, v2

    add-int/lit8 v7, v1, 0x1

    if-lt v6, v7, :cond_4

    .line 247
    if-gtz v5, :cond_2

    if-nez v1, :cond_3

    iget-object v6, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    invoke-virtual {p1, v6}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_3

    .line 248
    :cond_2
    iget-object v6, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 250
    :cond_3
    aget-object v6, v2, v1

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 251
    add-int/lit8 v5, v5, 0x1

    .line 244
    :cond_4
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 257
    .end local v3           #patternPart:Ljava/lang/String;
    :cond_5
    if-gtz v5, :cond_6

    if-lez v1, :cond_7

    .line 258
    :cond_6
    iget-object v6, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 260
    :cond_7
    aget-object v6, v2, v1

    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 256
    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method

.method public extractUriTemplateVariables(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Map;
    .locals 3
    .parameter "pattern"
    .parameter "path"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 267
    new-instance v1, Ljava/util/LinkedHashMap;

    invoke-direct {v1}, Ljava/util/LinkedHashMap;-><init>()V

    .line 268
    .local v1, variables:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    const/4 v2, 0x1

    invoke-virtual {p0, p1, p2, v2, v1}, Lorg/springframework/util/AntPathMatcher;->doMatch(Ljava/lang/String;Ljava/lang/String;ZLjava/util/Map;)Z

    move-result v0

    .line 270
    .local v0, result:Z
    return-object v1
.end method

.method public getPatternComparator(Ljava/lang/String;)Ljava/util/Comparator;
    .locals 2
    .parameter "path"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/Comparator",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 369
    new-instance v0, Lorg/springframework/util/AntPathMatcher$AntPatternComparator;

    const/4 v1, 0x0

    invoke-direct {v0, p1, v1}, Lorg/springframework/util/AntPathMatcher$AntPatternComparator;-><init>(Ljava/lang/String;Lorg/springframework/util/AntPathMatcher$AntPatternComparator;)V

    return-object v0
.end method

.method public isPattern(Ljava/lang/String;)Z
    .locals 2
    .parameter "path"

    .prologue
    const/4 v1, -0x1

    .line 64
    const/16 v0, 0x2a

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    if-ne v0, v1, :cond_0

    const/16 v0, 0x3f

    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public match(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 2
    .parameter "pattern"
    .parameter "path"

    .prologue
    .line 68
    const/4 v0, 0x1

    const/4 v1, 0x0

    invoke-virtual {p0, p1, p2, v0, v1}, Lorg/springframework/util/AntPathMatcher;->doMatch(Ljava/lang/String;Ljava/lang/String;ZLjava/util/Map;)Z

    move-result v0

    return v0
.end method

.method public matchStart(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 2
    .parameter "pattern"
    .parameter "path"

    .prologue
    .line 72
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-virtual {p0, p1, p2, v0, v1}, Lorg/springframework/util/AntPathMatcher;->doMatch(Ljava/lang/String;Ljava/lang/String;ZLjava/util/Map;)Z

    move-result v0

    return v0
.end method

.method public setPathSeparator(Ljava/lang/String;)V
    .locals 0
    .parameter "pathSeparator"

    .prologue
    .line 59
    if-eqz p1, :cond_0

    .end local p1
    :goto_0
    iput-object p1, p0, Lorg/springframework/util/AntPathMatcher;->pathSeparator:Ljava/lang/String;

    .line 60
    return-void

    .line 59
    .restart local p1
    :cond_0
    const-string p1, "/"

    goto :goto_0
.end method
